import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '地理位置',
    align: "center",
    dataIndex: 'position'
  },
  {
    title: '省',
    align: "center",
    dataIndex: 'province'
  },
  {
    title: '市',
    align: "center",
    dataIndex: 'city'
  },
  {
    title: '区县',
    align: "center",
    dataIndex: 'county_dictText'
  },
  {
    title: '乡镇',
    align: "center",
    dataIndex: 'town_dictText'
  },
  {
    title: '村',
    align: "center",
    dataIndex: 'village_dictText'
  },
  {
    title: '组',
    align: "center",
    dataIndex: 'team_dictText'
  },
  {
    title: '经度',
    align: "center",
    dataIndex: 'latitude'
  },
  {
    title: '纬度',
    align: "center",
    dataIndex: 'longitude'
  },
  {
    title: '户主姓名',
    align: "center",
    dataIndex: 'householder'
  },
  {
    title: '切坡类型',
    align: "center",
    dataIndex: 'slopeType_dictText'
  },
  {
    title: '土层松散程度',
    align: "center",
    dataIndex: 'soilLooseness_dictText'
  },
  {
    title: '上覆土体类型',
    align: "center",
    dataIndex: 'overlyingSoilType_dictText'
  },
  {
    title: '岩体特征',
    align: "center",
    dataIndex: 'rockCharacteristics_dictText'
  },
  {
    title: '裂隙发育程度',
    align: "center",
    dataIndex: 'fractureDevelopmentDegree_dictText'
  },
  {
    title: '切坡高度',
    align: "center",
    dataIndex: 'cutSlopeHeight_dictText'
  },
  {
    title: '切坡坡度',
    align: "center",
    dataIndex: 'cutSlopeGradient_dictText'
  },
  {
    title: '切坡坡形',
    align: "center",
    dataIndex: 'cutSlopeShape_dictText'
  },
  {
    title: '自然斜坡坡度',
    align: "center",
    dataIndex: 'naturalSlopeGradient_dictText'
  },
  {
    title: '岩组类型',
    align: "center",
    dataIndex: 'rockType_dictText'
  },
  {
    title: '植被覆盖率',
    align: "center",
    dataIndex: 'vegetationCoverage_dictText'
  },
  {
    title: '已有治理措施',
    align: "center",
    dataIndex: 'governanceMeasures_dictText'
  },
  {
    title: '切坡墙距',
    align: "center",
    dataIndex: 'slopeWallDistance_dictText'
  },
  {
    title: '切坡宽度',
    align: "center",
    dataIndex: 'cutSlopeWidth_dictText'
  },
  {
    title: '切坡时间',
    align: "center",
    dataIndex: 'cutSlopeTime_dictText'
  },
  {
    title: '是否有人居',
    align: "center",
    dataIndex: 'resident_dictText'
  },
  {
    title: '威胁人口',
    align: "center",
    dataIndex: 'threatPopulation_dictText'
  },
  {
    title: '威胁房屋结构',
    align: "center",
    dataIndex: 'threatHouse_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  position: {title: '地理位置',order: 0,view: 'text', type: 'string',},
  province: {title: '省',order: 1,view: 'text', type: 'string',},
  city: {title: '市',order: 2,view: 'text', type: 'string',},
  county: {title: '区县',order: 3,view: 'list', type: 'string',dictCode: '',},
  town: {title: '乡镇',order: 4,view: 'list', type: 'string',dictCode: '',},
  village: {title: '村',order: 5,view: 'list', type: 'string',dictCode: '',},
  team: {title: '组',order: 6,view: 'list', type: 'string',dictCode: '',},
  latitude: {title: '经度',order: 7,view: 'number', type: 'number',},
  longitude: {title: '纬度',order: 8,view: 'number', type: 'number',},
  householder: {title: '户主姓名',order: 9,view: 'text', type: 'string',},
  slopeType: {title: '切坡类型',order: 10,view: 'list', type: 'string',dictCode: 'slope_type',},
  soilLooseness: {title: '土层松散程度',order: 11,view: 'list', type: 'string',dictCode: 'soil_looseness',},
  overlyingSoilType: {title: '上覆土体类型',order: 12,view: 'list', type: 'string',dictCode: 'overlying_soil_type',},
  rockCharacteristics: {title: '岩体特征',order: 13,view: 'list', type: 'string',dictCode: 'rock_characteristics',},
  fractureDevelopmentDegree: {title: '裂隙发育程度',order: 14,view: 'list', type: 'string',dictCode: 'fracture_development_degree',},
  cutSlopeHeight: {title: '切坡高度',order: 15,view: 'list', type: 'string',dictCode: 'cut_slope_height',},
  cutSlopeGradient: {title: '切坡坡度',order: 16,view: 'list', type: 'string',dictCode: 'cut_slope_gradient',},
  cutSlopeShape: {title: '切坡坡形',order: 17,view: 'list', type: 'string',dictCode: 'cut_slope_shape',},
  naturalSlopeGradient: {title: '自然斜坡坡度',order: 18,view: 'list', type: 'string',dictCode: 'natural_slope_gradient',},
  rockType: {title: '岩组类型',order: 19,view: 'list', type: 'string',dictCode: '',},
  vegetationCoverage: {title: '植被覆盖率',order: 20,view: 'list', type: 'string',dictCode: 'vegetation_coverage',},
  governanceMeasures: {title: '已有治理措施',order: 21,view: 'list', type: 'string',dictCode: 'governance_measures',},
  slopeWallDistance: {title: '切坡墙距',order: 22,view: 'list', type: 'string',dictCode: 'slope_wall_distance',},
  cutSlopeWidth: {title: '切坡宽度',order: 23,view: 'list', type: 'string',dictCode: 'cut_slope_width',},
  cutSlopeTime: {title: '切坡时间',order: 24,view: 'list', type: 'string',dictCode: 'cut_slope_time',},
  resident: {title: '是否有人居',order: 25,view: 'list', type: 'string',dictCode: '',},
  threatPopulation: {title: '威胁人口',order: 26,view: 'list', type: 'string',dictCode: 'threat_population',},
  threatHouse: {title: '威胁房屋结构',order: 27,view: 'list', type: 'string',dictCode: 'threat_house',},
};
